<%@ Register TagPrefix="cc2" Namespace="PHSRAG.Insight21.InsightWebControls" Assembly="PHSRAG.Insight21.InsightWebControls" %>
<%@ Register TagPrefix="cc1" Namespace="PHSRAG.WebControls" Assembly="PHSRAG.WebControls" %>

<%@ Page Language="c#" Inherits="PHSRAG.Insight21.MonthlyLaborDistribution" CodeFile="MonthlyLaborDistribution.aspx.cs" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>MonthlyLaborDistribution</title>
    <link href="../Insight21.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="mldform" method="post" runat="server">
        <table class="Container" width="100%">
            <tr>
                <td>
                    <table class="Header" width="100%">
                        <tr>
                            <td>
                                <cc2:Header ID="header" runat="server"></cc2:Header>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc2:AgreementsSubNavigation ID="agreementsSubNavigation" runat="server"></cc2:AgreementsSubNavigation>
                                <cc2:PersonnelSubNavigation ID="personnelSubNavigation" runat="server"></cc2:PersonnelSubNavigation>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:BreadCrumb ID="breadCrumb" runat="server"></cc1:BreadCrumb>
                            </td>
                        </tr>
                    </table>
                    <table width="100%" cellspacing="10">
                        <tr>
                            <td>
                                <table class="SearchInDiv">
                                    <tr>
                                        <td>
                                            <cc2:CommonSearch ID="commonSearch" runat="server" Module="Personnel" OnSearch="OnSearch"
                                                COSPickerVisible="False" OnClearSelection="OnClearSelection" Field1Prompt="Employee Last Name:"
                                                Field1ID="employeeLastName" Field2Prompt="Employee First Name:" Field2ID="employeeFirstName"
                                                ViewOptionVisible="false" AddSinglePIToSearchCriteria="false" EmbeddedExtendedSearchControl="PHSRAG.Insight21.InsightWebControls/ExpiredAndExceptionSearch"
                                                EmbeddedExtendedSearchControlProperties="EffectiveSalaryDateVisible=false,ProjectEndingDateVisible=false,ExceptionMessagesVisible=false">
                                            </cc2:CommonSearch>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc2:SearchCriteriaDisplay ID="searchCriteriaDisplay" runat="server"></cc2:SearchCriteriaDisplay>
                            </td>
                        </tr>
                    </table>
                    <table id="dynamicTable" class="Invisible" cellspacing="10">
                        <tr>
                            <td>
                                <cc1:ActivityIndicator ID="activityIndicator" ContainerID="dynamicTable" runat="server">
                                </cc1:ActivityIndicator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:Annunciator ID="annunciator" ContainerID="dynamicTable" runat="server"></cc1:Annunciator>
                            </td>
                        </tr>
                    </table>
                    <table class="PlaceBar">
                        <tr>
                            <td class="PageName">
                                Labor Distribution</td>
                            <td align="center">
                                <cc2:RefreshDates ID="refreshDates" runat="server" Visible="True" SalaryAsOfDateVisible="True">
                                </cc2:RefreshDates>
                            </td>
                            <td align="right">
                                <cc2:InsightDownloadBar ID="reportDownload" useRootHost="true" runat="server"></cc2:InsightDownloadBar>
                            </td>
                        </tr>
                    </table>
                    <table width="100%">
                        <tr>
                            <td>
                                <cc1:Pager ID="pagerAboveDataGrid" runat="server" RecordLabel="Month" UseOptionalLeftText="True"
                                    UseOptionalRightText="True"></cc1:Pager>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:ScrollingGrid Height="400" Width="950" ID="ScrollingGrid1" 
                                    runat="server">
                                    <asp:DataGrid ID="laborDistributionGrid" GridLines="Vertical" ShowFooter="True" AutoGenerateColumns="False"
                                        AllowSorting="True" CssClass="DataGrid" runat="server" OnPreRender="OnLaborDistributionGridPreRender">
                                        <FooterStyle Height="25px" CssClass="DataGridFooter"></FooterStyle>
                                        <AlternatingItemStyle CssClass="DataGridAlternatingItem"></AlternatingItemStyle>
                                        <ItemStyle CssClass="DataGridItem"></ItemStyle>
                                        <HeaderStyle HorizontalAlign="Center" Height="25px" ForeColor="Black" BorderStyle="Solid"
                                            CssClass="ReconcileHeader"></HeaderStyle>
                                        <Columns>
                                            <asp:BoundColumn Visible="False" DataField="PersonId"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="LastName" SortExpression="LastName" ReadOnly="True" HeaderText="Last Name">
                                                <HeaderStyle CssClass="ReconcileHeader"></HeaderStyle>
                                            </asp:BoundColumn>
                                            <asp:BoundColumn DataField="FirstName" SortExpression="FirstName" ReadOnly="True"
                                                HeaderText="First Name">
                                                <HeaderStyle CssClass="ReconcileHeader"></HeaderStyle>
                                            </asp:BoundColumn>
                                            <asp:ButtonColumn DataTextField="Month1" SortExpression="Month1" HeaderText="October">
                                                <HeaderStyle CssClass="ReconcileHeader"></HeaderStyle>
                                                <ItemStyle HorizontalAlign="Right"></ItemStyle>
                                            </asp:ButtonColumn>
                                            <asp:ButtonColumn DataTextField="Month2" SortExpression="Month2" HeaderText="November">
                                                <HeaderStyle CssClass="ReconcileHeader"></HeaderStyle>
                                                <ItemStyle HorizontalAlign="Right"></ItemStyle>
                                            </asp:ButtonColumn>
                                            <asp:ButtonColumn DataTextField="Month3" SortExpression="Month3" HeaderText="December">
                                                <HeaderStyle CssClass="ReconcileHeader"></HeaderStyle>
                                                <ItemStyle HorizontalAlign="Right"></ItemStyle>
                                            </asp:ButtonColumn>
                                            <asp:ButtonColumn DataTextField="Month4" SortExpression="Month4" HeaderText="January">
                                                <HeaderStyle CssClass="ReconcileHeader"></HeaderStyle>
                                                <ItemStyle HorizontalAlign="Right"></ItemStyle>
                                            </asp:ButtonColumn>
                                            <asp:ButtonColumn DataTextField="Month5" SortExpression="Month5" HeaderText="February">
                                                <HeaderStyle CssClass="ReconcileHeader"></HeaderStyle>
                                                <ItemStyle HorizontalAlign="Right"></ItemStyle>
                                            </asp:ButtonColumn>
                                            <asp:ButtonColumn DataTextField="Month6" SortExpression="Month6" HeaderText="March">
                                                <HeaderStyle CssClass="ReconcileHeader"></HeaderStyle>
                                                <ItemStyle HorizontalAlign="Right"></ItemStyle>
                                            </asp:ButtonColumn>
                                            <asp:ButtonColumn DataTextField="Month7" SortExpression="Month7" HeaderText="April">
                                                <HeaderStyle CssClass="ReconcileHeader"></HeaderStyle>
                                                <ItemStyle HorizontalAlign="Right"></ItemStyle>
                                            </asp:ButtonColumn>
                                            <asp:ButtonColumn DataTextField="Month8" SortExpression="Month8" HeaderText="May">
                                                <HeaderStyle CssClass="ReconcileHeader"></HeaderStyle>
                                                <ItemStyle HorizontalAlign="Right"></ItemStyle>
                                            </asp:ButtonColumn>
                                            <asp:ButtonColumn DataTextField="Month9" SortExpression="Month9" HeaderText="June">
                                                <HeaderStyle CssClass="ReconcileHeader"></HeaderStyle>
                                                <ItemStyle HorizontalAlign="Right"></ItemStyle>
                                            </asp:ButtonColumn>
                                            <asp:ButtonColumn DataTextField="Month10" SortExpression="Month10" HeaderText="July">
                                                <HeaderStyle CssClass="ReconcileHeader"></HeaderStyle>
                                                <ItemStyle HorizontalAlign="Right"></ItemStyle>
                                            </asp:ButtonColumn>
                                            <asp:ButtonColumn DataTextField="Month11" SortExpression="Month11" HeaderText="August">
                                                <HeaderStyle CssClass="ReconcileHeader"></HeaderStyle>
                                                <ItemStyle HorizontalAlign="Right"></ItemStyle>
                                            </asp:ButtonColumn>
                                            <asp:ButtonColumn DataTextField="Month12" SortExpression="Month12" HeaderText="September">
                                                <HeaderStyle CssClass="ReconcileHeader"></HeaderStyle>
                                                <ItemStyle HorizontalAlign="Right"></ItemStyle>
                                            </asp:ButtonColumn>
                                            <asp:ButtonColumn DataTextField="Total" SortExpression="Total" HeaderText="Total"
                                                CommandName="SelectTotal">
                                                <HeaderStyle CssClass="ReconcileHeader"></HeaderStyle>
                                                <ItemStyle HorizontalAlign="Right"></ItemStyle>
                                            </asp:ButtonColumn>
                                        </Columns>
                                        <PagerStyle Visible="False"></PagerStyle>
                                    </asp:DataGrid>
                                </cc1:ScrollingGrid>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:Pager ID="pagerBelowDataGrid" runat="server" RecordLabel="Month" UseOptionalLeftText="True"
                                    UseOptionalRightText="True"></cc1:Pager>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
